package ogon.seekbaradv;

import android.app.Activity;
import android.os.Bundle;
import android.widget.SeekBar;
import android.widget.TextView;

public class OgonSeekBarAdvanced extends Activity {
    /** Called when the activity is first created. */
	SeekBar seekbaradv;
	TextView seekbartext;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        seekbaradv = (SeekBar)findViewById(R.id.seekbaradv);
        seekbartext = (TextView)findViewById(R.id.textseek);
        seekbaradv.setMax(100);
        seekbaradv.setProgress(0);
        seekbaradv.setOnSeekBarChangeListener(OgonChangeListener);
    }
    private SeekBar.OnSeekBarChangeListener OgonChangeListener = new SeekBar.OnSeekBarChangeListener() {
		
		@Override
		public void onStopTrackingTouch(SeekBar seekBar) {			
		}
		
		@Override
		public void onStartTrackingTouch(SeekBar seekBar) {			
		}
		
		@Override
		public void onProgressChanged(SeekBar seekBar, int progress,
				boolean fromUser) {
			seekbartext.setText("Moving Value...." + Integer.toString(progress));
		}
	};
}